package com.hook3.pianke.activity.home;

import android.app.Activity;
import android.widget.FrameLayout;

import com.hook3.pianke.Net.Url;

import org.xutils.common.Callback;
import org.xutils.http.RequestParams;
import org.xutils.x;

/**
 * Created by HOME on 2015/12/14.
 */
public class ChoiceActivity {
    private Activity activity;
    private FrameLayout frameLayout;

    public ChoiceActivity(Activity activity, FrameLayout frameLayout) {
        this.activity = activity;
        this.frameLayout = frameLayout;
        init();
    }

    private void init() {
        //拿加载页面

        //访问网络拿精选数据
        RequestParams params = new RequestParams(Url.CHOICE);
        x.http().get(params, new MyCommonCallback());

    }

    class MyCommonCallback implements Callback.CommonCallback<String> {

        @Override
        public void onSuccess(String result) {

        }

        @Override
        public void onError(Throwable ex, boolean isOnCallback) {

        }

        @Override
        public void onCancelled(CancelledException cex) {

        }

        @Override
        public void onFinished() {

        }
    }


}
